#include "overview.h"
#include <QtPlugin>

Q_EXPORT_PLUGIN2(overview, Overview); // first is target name in project file

Overview::Overview(){
	printf("Overview contructor. parent: %lX\n", (unsigned long)parent());
	setObjectName("Overview");
	setText("Hello world of QT plugins.");
}

Overview::~Overview(){
	printf("Overview destructor.\n");
	printf("Overview destructor. parent: %lX\n", (unsigned long)parent());
}

void Overview::onInitialize(QObject *manager){
	connect(manager, SIGNAL(fitsChanged(FITS)), this, SLOT(setFits(FITS)));
}

void Overview::setFits(FITS *fits){
	printf("new fits\n");
}
